package com.ggb.reactive.domain.dto

import com.ggb.reactive.domain.entity.SetmealDish
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotEmpty
import lombok.Data
import java.math.BigDecimal

@Data
@Schema(title="套餐信息 DishDTO")
data class SetmealDTO(
    var id:Long?=null,
    @Schema(description = "菜品名")
    var name:String?=null,
    //菜品分类id
    @Schema(description = "菜品分类id")
    var categoryId:Long?=null,
    //菜品价格
    @Schema(description = "菜品价格")
    var price: BigDecimal?=null,
    //图片
    @Schema(description = "图片")
    var image:String?=null,
    //描述信息
    @Schema(description = "描述信息")
    var description:String?=null,
    //0 停售 1 起售
    @Schema(description = "0 停售 1 起售")
    var status:Int?=null,
    //套餐菜品关系
    @Schema(description = "套餐菜品关系")
    @field:NotEmpty(message = "套餐菜品不能为空")
    var setmealDishes:List<SetmealDish> = emptyList(),

)
